package com.aiyan.edu.service.learning.client.fallback;

import com.aiyan.edu.framework.domain.course.CoursePlanMediaPub;
import com.aiyan.edu.framework.model.response.CommonCode;
import com.aiyan.edu.framework.model.response.CommonResponseResult;
import com.aiyan.edu.service.learning.client.CourseEsSearchClient;
import org.springframework.stereotype.Component;

/**
 * @author: zqzhou
 * @create: 2019/11/25 21:44
 **/
@Component
public class CourseEsSearchClientFallback implements CourseEsSearchClient {
    @Override
    public CommonResponseResult<CoursePlanMediaPub> findCourseMedia(String coursePlanId) {
        return new CommonResponseResult<>(CommonCode.FALLBACK, null);
    }
}
